package com.patchmanage.back.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author huizhao
 * @since 2021-03-28
 */
@ApiModel(value = "InventoryGroup对象", description = "")
public class InventoryGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分组ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "分组名称")
    private String name;

    @ApiModelProperty(value = "优先级(0低1中2高)")
    private Integer priority;

    @ApiModelProperty(value = "策略状态(0:关闭 1:开启)")
    private Integer policyStatus;

    @ApiModelProperty(value = "匹配分组ID")

    @TableField(value = "group_id",strategy = FieldStrategy.IGNORED)
    private Integer groupId;


    @TableField(value = "group_name",strategy = FieldStrategy.IGNORED)
    private String groupName;

    @ApiModelProperty(value = "匹配规则")
    private String matchRules;

    @ApiModelProperty(value = "建立时间")
    private LocalDateTime establishTime;

    @ApiModelProperty(value = "规则描述")
    private String dsc;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public Integer getPolicyStatus() {
        return policyStatus;
    }

    public void setPolicyStatus(Integer policyStatus) {
        this.policyStatus = policyStatus;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getMatchRules() {
        return matchRules;
    }

    public void setMatchRules(String matchRules) {
        this.matchRules = matchRules;
    }

    public LocalDateTime getEstablishTime() {
        return establishTime;
    }

    public void setEstablishTime(LocalDateTime establishTime) {
        this.establishTime = establishTime;
    }

    public String getDsc() {
        return dsc;
    }

    public void setDsc(String dsc) {
        this.dsc = dsc;
    }

    @Override
    public String toString() {
        return "InventoryGroup{" +
                "id=" + id +
                ", name=" + name +
                ", priority=" + priority +
                ", policyStatus=" + policyStatus +
                ", groupId=" + groupId +
                ", groupName=" + groupName +
                ", matchRules=" + matchRules +
                ", establishTime=" + establishTime +
                ", dsc=" + dsc +
                "}";
    }
}
